Skip to content

Replace alpine:3.15 with distroless static#912

Open
thearyanahmed wants to merge 1 commit intomasterfrom
update-alpine
Open

Replace alpine:3.15 with distroless static#912
thearyanahmed wants to merge 1 commit intomasterfrom
update-alpine

Conversation

@thearyanahmed
Copy link
Copy Markdown

@thearyanahmed thearyanahmed commented Apr 20, 2026

This PR Replaces alpine:3.15 with gcr.io/distroless/static-debian12:nonroot for both images.

Also removes package installation (apk add ca-certificates) and simplify the image contents to just the compiled binaries.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens the container images for the DigitalOcean cloud-controller-manager and its admission server by switching from an Alpine-based runtime image to a distroless static (nonroot) runtime image.

Changes:

  • Replace alpine:3.15 with gcr.io/distroless/static-debian12:nonroot for both images.
  • Remove package installation (apk add ca-certificates) and simplify the image contents to just the compiled binaries.
  • Use ENTRYPOINT to run the binaries by default.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
cloud-controller-manager/cmd/digitalocean-cloud-controller-manager/Dockerfile Switch runtime base image to distroless static nonroot; copy binary and set entrypoint.
cloud-controller-manager/cmd/digitalocean-cloud-controller-manager-admission-server/Dockerfile Same distroless static nonroot migration for the admission server image.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@thearyanahmed thearyanahmed marked this pull request as ready for review April 23, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants